#include "pch.h"
#include "Framebuffer.h"
#include "Renderer.h"
#include "GLFramebuffer.h"

namespace HS {
	
	std::shared_ptr<Framebuffer> Framebuffer::Create(const FramebufferSpecification& spec)
	{
		switch (Render::GetAPI())
		{
			case RendererAPI::API::None:    
				LOGERROR("RendererAPI::None is currently not supported!");
				return nullptr;
			case RendererAPI::API::OpenGL:  
				return std::make_shared<GLFramebuffer>(spec);
		}
		LOGERROR("Unknown RendererAPI!");
		return nullptr;
	}

}

